<template>
  <div>
    <h4 style="margin-top:0%;margin-left:5%;font-size:21px;margin-bottom:3%">专区</h4>
    <div class="Card">
      <div class="item" v-for="m in list" :key="m.id">
        <router-link :to="{name:'detail',params:{id:m.id,cover:m.cover,title:m.subtitle,nick:'QQ音乐',avatar:'https://y.gtimg.cn/music/common/upload/t_playsong_ad/1804247.png?max_age=2592000'}}">
          <div>
            <img class="imgs" :src="m.cover" />
          </div>
          <div id="text">{{m.subtitle}}</div>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["list"],
  data() {
    return {};
  }
};
</script>

<style scoped>
.Card {
  display: flex;
  /* flex-direction: row; */
  overflow: auto;
  overflow-y: hidden;
  margin-left: 0%;
  height: 192px;
}

.swiper-slide {
  width: 165px;
}
.item {
  height: 166px;
  width: 130px;
  margin-right: 26%;
  font-size: 15px;
}
.imgs {
  width: 249px;
  height: 140px;
  border-radius: 10px;
}

a {
  text-decoration: none;
}

#text {
  margin-top: 2%;
  color: #000;
  width: 249px;
}
</style>